package com.ulife.order.service.enumeration;

/**
 * Created by Ulife on 2016/1/3.
 */
public enum SaleOrderShipStatus {
    WaitShip(1),
    Shipping(2),
    Shipped(3);

    private int value = 1;

    private SaleOrderShipStatus(int value) {
        this.value = value;
    }

    public static SaleOrderShipStatus valueOf(int value){
        switch (value){
            case 1:return WaitShip;
            case 2:return Shipping;
            case 3:return Shipped;
            default:return null;
        }
    }
    public int value(){
        return this.value;
    }
}
